<?php
 date_default_timezone_set ('Asia/Shanghai');
?>
<!DOCTYPE html>
<html lang="CN">
  <head>
    <meta charset="utf-8">
    <!--[if IE]><meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'><![endif]-->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <block name="title"><title>鲜生驾到</title></block>
    <meta name="description" content="Mobile Apps Landing Page for Marketing" />
    <meta name="keywords" content="mobile apps, landing page, responsive website, marketing"/>
    <meta name="author" content="Jenn Pereira"/>
    <link rel="icon" type="image/png" href="__PUBLIC__/img/favicon.ico"/>

    <!-- Bootstrap -->
    <link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet">
	 <!-- jQuery -->
 	<script src="__PUBLIC__/bower_components/jquery/jquery.min.js"></script>
	<!-- My Style -->
    <link href="__PUBLIC__/css/store-style.css" rel="stylesheet">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->

	
  </head>
  <body>

  <!-- Homepage -->
 <section id="navigation">
    <div class="menu-position">
      <div class="nav-logo"> 
        <a href="__APP__/Home/Food" class="logo">
          <img src="__PUBLIC__/img/nav-logo.png" alt="logo">
        </a>
      </div>
      <div style="float: right;margin-right: 40px;margin-top: 10px;">
      		<button class="btn btn-danger" type="button" id="btn_cart">
				购物车 <span class="badge" id="cart_num">{$Think.session.store.cartnum}</span>
			</button>
			<button class="btn btn-warning" type="button" id="btn_order">
				订&nbsp;&nbsp;&nbsp;&nbsp;单 <span class="badge">{$Think.session.store.ordernum}</span>
			</button>
			<button class="btn btn-primary" type="button" id="btn_logout">
				注&nbsp;&nbsp;&nbsp;&nbsp;销</span>
			</button>
      </div>
    </div>
  </section>
 
<block name="main-content"></block>
<footer>
    <div class="container">
		<p class="text-center" style="margin-top: 20px;"><a href="#"><strong>奇个隆咚强科技有限公司</strong></a><strong style="margin-left: 30px;">|</strong><strong style="margin-left: 30px;"><a href="#">阡陌森创意设计有限公司</a></strong></p>
		<p class="text-center"><small>Designed &amp; Developed by <a href="#">奇个隆咚强</a></small></p>
	</div>
</footer>
<script src="__PUBLIC__/js/menu.js" type="text/javascript"></script>
<script src="__PUBLIC__/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/js/jquery.fly.min.js"></script>
<script type="text/javascript">
// $(function() { 
// 	var $$ = function(func){  
// 	    if (document.addEventListener) {  
// 	        window.addEventListener("load", func, false);  
// 	    }  
// 	    else if (document.attachEvent) {  
// 	        window.attachEvent("onload", func);  
// 	    }  
// 	};
// 	$$(function(){  
// 		var scroll_offset = $(".path15").offset();  //得到pos这个div层的offset，包含两个值，top和left
// //	  	$(window).scrollTop(scroll_offset.top);
// 		$("body,html").animate({
// 		   scrollTop:(scroll_offset.top -100)  //让body的scrollTop等于pos的top，就实现了滚动
// 		},0); 
// 	})
// })
$('#btn_cart').click(function(e){
	 window.location.href="__APP__/Home/Cart"; 
});
$('#btn_order').click(function(e){
	window.location.href="__APP__/Home/Order"; 
});
$('#btn_logout').click(function(e){
	window.location.href="__APP__/Home/Index/logout"; 
});
</script>
<block name="js-content"></block>
  </body>
</html>